import request from '@/utils/request'

// 查询景区订单模块列表
export function listScenicSpotOrders(query) {
  return request({
    url: '/system/scenicSpotOrders/list',
    method: 'get',
    params: query
  })
}

// 查询景区订单模块详细
export function getScenicSpotOrders(scenicSpotOrderid) {
  return request({
    url: '/system/scenicSpotOrders/' + scenicSpotOrderid,
    method: 'get'
  })
}

// 新增景区订单模块
export function addScenicSpotOrders(data) {
  return request({
    url: '/system/scenicSpotOrders',
    method: 'post',
    data: data
  })
}

// 修改景区订单模块
export function updateScenicSpotOrders(data) {
  return request({
    url: '/system/scenicSpotOrders',
    method: 'put',
    data: data
  })
}

// 删除景区订单模块
export function delScenicSpotOrders(scenicSpotOrderid) {
  return request({
    url: '/system/scenicSpotOrders/' + scenicSpotOrderid,
    method: 'delete'
  })
}
